GtkFileChooser: Use a better busy cursor
authorMatthias Clasen <mclasen@redhat.com>
Fri, 1 May 2015 02:40:45 +0000 (22:40 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 1 May 2015 02:43:50 +0000 (22:43 -0400)
It is possible to interact with the file chooser while
things are loading, so use a cursor that indicates this,
if we have one.

gtk/gtkfilechooserwidget.c

index 9daf923c3e3fb2015c493c939beff322da56ec7f..46abe232113f6fcf4624e144d28e23eb56abb218 100644 (file)
@@ -3454,7 +3454,11 @@ set_busy_cursor (GtkFileChooserWidget *impl,
   display = gtk_widget_get_display (widget);
 
   if (busy)
-    cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+    {
+      cursor = gdk_cursor_new_from_name (display, "left_ptr_watch");
+      if (cursor == NULL)
+        cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
+    }
   else
     cursor = NULL;